home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 301-325 / disk_313 / uucp / uucp1.lzh / src / lib / mntreq.c < prev    next >
C/C++ Source or Header  |  1990-01-10  |  519b  |  29 lines

  1.  
  2. /*
  3.  *  MNTREQ.C
  4.  *
  5.  *  (C) Copyright 1989-1990 by Matthew Dillon,  All Rights Reserved.
  6.  */
  7.  
  8. #include <proto/all.h>
  9.  
  10. typedef struct Process    PROC;
  11.  
  12. void
  13. mountrequest(bool)
  14. int bool;
  15. {
  16.     static APTR original_pr_WindowPtr = NULL;
  17.     register PROC *proc;
  18.  
  19.     proc = (PROC *)FindTask(0);
  20.     if (!bool && proc->pr_WindowPtr != (APTR)-1) {
  21.     original_pr_WindowPtr = proc->pr_WindowPtr;
  22.     proc->pr_WindowPtr = (APTR)-1;
  23.     }
  24.     if (bool && proc->pr_WindowPtr == (APTR)-1)
  25.     proc->pr_WindowPtr = original_pr_WindowPtr;
  26. }
  27.  
  28.  
  29.